// color
@theme1-color: #515a6e;
@theme-color: #2d8cf0;
@light-theme-color: #5cadff;
@dark-theme-color: #2b85e4;
@info-color: #2db7f5;
@success-color: #19be6b;
@warning-color: #ff9900;
@error-color: #ed4014;
@title-color: #17233d;
@content-color: #515a6e;
@sub-color: #808695;
@disabled-color: #c5c8ce;
@border-color: #dcdee2;
@divider-color: #e8eaec;
@background-color: #f8f8f9;
@white: white;

// 间距
@padding: 16px;

// 默认样式
* {
  box-sizing: border-box;
}

a {
  color: @theme-color;
}

a:hover {
  color: @light-theme-color;
}

.dark-a {
  color: @title-color;
}

// 清除float
.clear-float::after {
  display: block;
  clear: both;
  content: "";
  visibility: hidden;
  height: 0;
}

// 动画
.fade-enter-active, .fade-leave-active {
  transition: opacity .5s;
}
.fade-enter, .fade-leave-to {
  opacity: 0;
}
.slide-fade-item {
  transition: all 0.1s ease-in-out;
  display: inline-block;
}
.slide-fade-enter, .slide-fade-leave-to
/* .list-complete-leave-active for below version 2.1.8 */ {
  opacity: 0;
  transform: translateX(-10px);
}

// 滚动条样式
.menu-scrollbar::-webkit-scrollbar,
.common-scrollbar::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 11px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}

// 滚动条样式1
.menu-scrollbar::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 2px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: @sub-color;
}

// 滚动条样式2
.common-scrollbar::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 2px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: @border-color;
}

.is-link {
  cursor: pointer;
}

.center {
  text-align: center;
}

.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-row-center {
  align-items: center;
  text-align: center;
}
.flex-1 {
  flex: 1;
}
.flex-between {
  justify-content: space-between;
}
.flex-around {
  justify-content: space-around;
}

.portal-view {
  .card-portal {
    margin-right: 20px;
  }
}

.tips-right {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  font-size: 0;
  &> * {
    vertical-align: middle;
  }
  &:after {
    content: '';
    vertical-align: middle;
    display: inline-block;
    width: 0;
    height: 100%;
  }
}

.card-opr-tool {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0 0 2px 2px;
  bottom: 52px;
  padding: 10px 0;
  text-align: center;
  color: #FFF;
  display: flex;
  width: 100%;
  font-size: 20px;
  .border {
    position: relative;
    &:after {
      content: '';
      right: 0;
      top: 8px;
      bottom: 8px;
      position: absolute;
      width: 1px;
      background-color: #FFF;
    }
  }
}

.b-box {
  background-color: #FFF;
  &-title {
    font-size: 20px;
    color: #333;
    padding: 20px 30px;
    border-bottom: 1px solid #E8E8E8;
  }
  .simple-text-list {
    padding: 20px 30px;
    .list-title {
      color: #333333;
      font-size: 20px;
      margin-bottom: 10px;
    }
     &-item {
       padding-left: 12px;
       color: #66B1FF;
       font-size: 12px;
       margin-bottom: 8px;
     }
  }
}

.table-panel {
  position: relative;
  .search-tool {
    .ivu-form-inline {
      .ivu-form-item {
        margin-bottom: 16px;
        margin-right: 16px;
      }
      .ivu-btn {
        & + .ivu-btn {
          margin-left: 16px;
        }
      }
    }
  }
  .opr-tool {
    margin-bottom: 16px;
    .ivu-btn {
      & + .ivu-btn {
        margin-left: 16px;
      }
    }
  }
}
.ivu-page {
  font-weight: normal;
  text-align: right;
  margin-top: 8px;
}
.ivu-table:after, .ivu-table:before {
  content: "";
  position: absolute;
  background-color: #dcdee2;
}

.ivu-table:after {
  width: 1px;
  height: 100%;
  top: 0;
  right: 0;
  z-index: 3;
}

.page-container {
  text-align: center;
  padding-top: 24px;
}

.ivu-table-wrapper {
  position: relative;
  border: 1px solid #dcdee2;
  border-bottom: 0;
  border-right: 0;
  overflow: hidden;
  .table-opr-btn {
    .btn-item {
      color: @theme-color;
      font-size: 18px;
      cursor: pointer;
      & + .btn-item {
        margin-left: 8px;
      }
      &[disabled] {
        color: @disabled-color;
        cursor: not-allowed;
      }
    }
  }
}

.f-primary {
  color: @theme-color!important;
}
.f-success {
  color: @success-color!important;
}
.f-danger {
  color: @error-color!important;
}
.f-warning {
  color: @warning-color!important;
}
